/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package NN;

/**
 *
 * @author S094182
 */
public class OutNeuron extends Neuron {

    double signal;
    public double getSignal() { return signal; }
    
    public OutNeuron(int nIn, int nInLayer) {
        super(nIn, nInLayer, null);        
    }
    
    @Override
    void activate() {
        calcWeightedInputs();
        signal = Sigmoid.Sig(weightedInputs);  
    }

    void setErr(double trueVal) {
        this.err = trueVal - signal;
    }


}
